str = 'ABCDEFG'


def printalphebat():
    print(str[0:3:])
    print(str[::])
    print(str[6::])
    print(str[0:-3:])
    print(str[2])
    print(str[-1])
    print(str[::-1])
    print(str[-3:-1:])
    print(str[-3::])
    print(str[:-5:-3])


def replaceletter():
    str = 'ABCABCABC'
    print(str.replace('C', 'V'))
    print(str.replace('BC', 'WV'))
    print(str.replace('BC', '   '))


def search1():
    str = 'ABCDABC'
    print(str.find('A'))
    print(str.find('A', 3))
    print(str.find('C', 1, 5))
    print(str.find('G'))


def splitword():
    str = 'ABCDABC'
    print(str.split('B'))
    print(str.split('B', 2))


def main():
    splitword()


if __name__ == '__main__':
    main()
